#include <iostream>
using std::cout;
using std::endl;

double division(double x,double y){
    if(y == 0){
        throw "Division by zero condition!";
    }else if(x == 0){
        throw 1.1;
    }
    return x/y;
}

void test0(){
    try{
        double x = 0, y = 100;
        cout << division(x,y) << endl;
        cout << "over" << endl;
    }
    catch(const char *){//catch的是异常的类型
        /* cout << msg << endl;//具体的异常处理的方式 */
        cout << "error!!!!!" << endl;
    }
    catch(double a){
        cout << a << endl;
    }

    cout << "hello" << endl;
}

int main(void){
    test0();
    return 0;
}
